package me.magicall.test.db.mybatis.mappers;

import java.util.List;

import me.magicall.test.db.T1;

import org.apache.ibatis.annotations.Select;
import org.springframework.stereotype.Repository;
import org.springframework.transaction.annotation.Transactional;

@Repository
@Transactional
public interface T1Mapper {

	@Select("select * from t1 ")
	List<T1> getAll();

	@Select("select * from t1 where id=#{id}")
	T1 getById(int id);
}
